package com.tcd.policy.service;


import com.tcd.Policy.pojo.WarrantyInfo;

import java.util.List;

/**
 * <p>
 * 保单信息表 服务类
 * </p>
 *
 * @author cz
 * @since 2021-05-25
 */
public interface WarrantyInfoService{

    //查询所以的保单信息
    List<WarrantyInfo> getWarrantyInfo(Integer pageIndex, Integer pageSize,String warrantyId,String licenseId,String policyholdersName,String insuranceType);

    //添加交强险
    int addWarrantyCompulsory(WarrantyInfo warrantyInfo);

    //添加商业险
    int addWarrantyBusiness(WarrantyInfo warrantyInfo);

    //查询保单商业险
    List<String> selectInsureRiskInfo(String warrantyId);

    //修改保单
    int updatePolicyByid(WarrantyInfo warrantyInfo);

    //修改交强险保单
    int updatePolicyCompulsoryByid(WarrantyInfo warrantyInfo);

    //查询未审核保单
    List<WarrantyInfo> getWarrantyInfoByauditStatus(String warrantyId, String licenseId, String policyholdersName);

    //审核保单
    int updateAuditStatus(String auditStatus,String warrantyId);

    //根据保单编号修改出险次数
    int updateaccidentsNumById(String[] warrantyId);

    //查询保单总数
    Integer getWarrantyInfoCount(String warrantyId, String licenseId, String policyholdersName);
}